package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * ForumQuestionAnswerEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@FluentMybatis(table = "forum_question_answer", schema = "yzj_forum")
@AllArgsConstructor
@NoArgsConstructor
public class ForumQuestionAnswerEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /** */
  @TableId(value = "questionId", auto = false)
  private Integer questionId;

  /** */
  @TableField("answerId")
  private Integer answerId;

  @Override
  public final Class entityClass() {
    return ForumQuestionAnswerEntity.class;
  }
}
